import java.util.Scanner;
public class Test {

		public static void main(String[] args){

			System.out.println("输入一个数并回车");

			System.out.println("以#为结束符结束操作");

			Scanner reader = new Scanner(System.in);
			
			while(!reader.hasNext("#"))
			{

				if(reader.hasNextInt())//判断是否整型

				{

					Long Long=reader.nextLong();

					System.out.println(Long+"为整型");

				}

				else if(reader.hasNextDouble())//判断是否浮点型

				{

					Double D=reader.nextDouble();

					System.out.println(D+"为浮点型");

				}

				else if(reader.hasNext())//判断是否字符串型

				{

					String str=reader.nextLine();

					System.out.println(str+"为字符串");

				}

			}

		}

	}